package util

import (
	"strings"
)

// 根据URI获取精简版URI
func GetSubUriByUri(uri string) string {
	uriArray := strings.Split(strings.Split(uri, "?")[0], "/")
	if len(uriArray) >= 3 {
		return "/" + uriArray[1] + "/" + uriArray[2] + "/" + uriArray[3]
	}
	return ""
}
